﻿using Google.Protobuf.WellKnownTypes;

namespace Elio.Sessions;

public class AudioTrackSession : BaseSession
{
    protected override string SessionName => base.SessionName = "AudioTrack";

    protected override async Task OnReceive(string name, long sessionId, long futureId, params Any[] argv)
    {
        switch (name)
        {
            case "write":
                Write();
                break;

            case "stop":
                Stop();
                break;

            case "play":
                Play();
                break;

            case "pause":
                Pause();
                break;

            case "setSpeed":
                SetSpeed();
                break;

            case "setVolume":
                SetVolume();
                break;

            default:
                await base.OnReceive(name, sessionId, futureId, argv);
                break;
        }
    }
    private static void Write() { }
    private static void Stop() { }
    private static void Play() { }
    private static void Pause() { }
    private static void SetSpeed() { }
    private static void SetVolume() { }
}